package math;

public class MATH1 {
    public static void main(String[] args) {
        System.out.println(Math.abs(-3.14));//取绝对值3.14
        System.out.println(Math.ceil(4.1));//向上取整5
        System.out.println(Math.floor(3.61));//向下（取整）抹零3
        System.out.println(Math.round(3.4));//四舍五入
        System.out.println(Math.round(3.5));
        System.out.println(Math.PI);
    }
}
